package com.example.springboot.demo.commom;

import org.springframework.format.FormatterRegistry;
import org.springframework.format.datetime.DateFormatter;

public class DataFormatter {

    public  void  AddFormatters(FormatterRegistry registry){
        registry.addFormatter(new DateFormatter("yyyy-MM-dd HH:mm:ss"));
    }
}
